<admintpl file="header" />
<style>
.table th, .table td{text-align: center;}
.table-list{    margin-bottom: 50px;}
.remark{text-align: left;margin: 0;}
</style>
</head>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('overtime_form')}">加班报销单</a></li>
			<li class=""><a href="{:U('overtime_form',['print'=>2,'map'=>$map])}" target='_blank'>导出预览</a></li>
			<li class=""><a href="{:U('overtime_form',['print'=>1,'map'=>$map])}">导出</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('overtime_form')}">
			时间
			<input type="text" name="start_date" class="js-date" value="{$period_start}" style="width: 80px;" autocomplete="off">-
			<input autocomplete="off" type="text" class="js-date" name="end_date" value="{$period_end}" style="width: 80px;"> 姓名
			<input type="text" name="name" style="width: 200px;" value="{$_REQUEST[name]}">
			<select name="dep_id" id="">
				<option value="">全部</option>
				{:dep_select($_POST[dep_id])}
			</select>	
			
			<button class="btn btn-primary">搜索</button>
			<a class="btn btn-primary" href="{:U('')}">清空</a>
		</form>
		<form class="js-ajax-form" method="post" id='printArea'>
			<foreach name='list' item='fo' key='fok'>
				<table class="table table-hover table-bordered table-list" >
					<thead>
						<tr>
							<th width="50">序</th>
							<th width="">报销人</th>
							<th width="">所属部门</th>
							<th width="">对应客户</th>
							<th width="">开始时间</th>
							<th width="">截止时间</th>
							<th>实际工时</th>
							<th>有效工时</th>
							<th width="" colspan='2'>报销费用</th>
							<th width="">备注</th>
							
						</tr>
					</thead>
					<volist name="fo" id="vo" key="k">
						<tr>
							<td>{$k}</td>
							<td>{$vo.name}</td>
							<td>{$vo.dep_name}</td>
							<td></td>
							<td>{$vo.duty_on}</td>
							<td>{$vo.duty_off}</td>
							<td>{$vo.work_actual}</td>
							<td>{$vo.work_effect}</td>
							<td style='min-width: 13px;'>{$vo.meal_car_fare}</td>
							<td>{$vo.meal_fee}</td>
							<td>{$vo.is_work_day}({$vo.date_str})</td>
						</tr>
					</volist>
					<tr>
						<td colspan='8'>合计:</td>
						<td></td>
						<td>{$sumfee[$fok]}</td>
						<td></td>
					</tr>
				</table>
			</foreach>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>